<%@ Control Language="C#" AutoEventWireup="true" CodeFile="login.ascx.cs" Inherits="Controls.Login.Login" %>
<asp:MultiView ID="mviewLogin" runat="server">
    <asp:View ID="viewLogin" runat="server">
        <div style="float : left">
            Username:
            <asp:TextBox runat="server" ID="txtUsername" />
            
            Password:
            <asp:TextBox runat="server" ID="txtPassword"
                TextMode="Password" />
                
            <asp:Button runat="server" ID="btnLogin"
                Text="Login" OnClick="btnLogin_Click"/>
                
            <asp:Label runat="server" ID="lblError"
                Visible="False"
                ForeColor="Red"
                Text="Incorrect username or password." EnableViewState="False" />
        </div>
        <div style="float : right">
            <asp:Hyperlink runat="server" ID="lnkRegister"
                Text="Register" />
        </div>
    </asp:View>
    <asp:View ID="viewAuthenticated" runat="server">
        Welcome, 
        <b><asp:Label runat="server" ID="lblUsername" /></b>
    </asp:View>
</asp:MultiView>
